/*
 * @Description: 合同计划数据模型
 * @Author: wind-lc
 * @version: 1.0
 * @Date: 2023-05-26 17:06:52
 * @LastEditTime: 2023-06-07 11:20:44
 * @FilePath: \cscec-pms-admin\src\views\construction\contractor\model.js
 */

import OrgTreeSelect from '@/components/OrgTreeSelect'
// 合同计划列表搜索选项
const searchOption = [
  {
    name: '所属单位',
    valueKey: 'searchQuery',
    type: OrgTreeSelect,
  },
  {
    name: '项目业态',
    value: 'projectFormat',
    type: 'select',
    data: []
  }
]
// 合同计划列表表头
const columns = [
  {
    title: '单位',
    fixed: 'left',
    width: 320,
    dataIndex: 'orgName',
    ellipsis: true,
    customRender: (value, row) => {
      if (row.tageCode === 'PD') {
        const text = row.projectVO?.projectName
        return text ? text : ''
      } else {
        return value
      }
    }
  },
  {
    title: '项目业态',
    width: 200,
    dataIndex: 'projectFormats',
    customRender: (value, row) => {
      const text = row.projectVO?.projectFormats
      return text ? text : ''
    }
  },
  {
    title: '节点按时完成率',
    width: 200,
    dataIndex: 'onTimeCompleteRate',
    scopedSlots: { customRender: 'rate' },
  },
  {
    title: '节点完成率',
    width: 200,
    dataIndex: 'completeRate',
    scopedSlots: { customRender: 'rate' },
  },
  {
    title: '状态 ',
    width: 140,
    dataIndex: 'statusName',
    scopedSlots: { customRender: 'statusCode' },
  },
  {
    title: '操作',
    fixed: 'right',
    dataIndex: 'operation',
    width: 170,
    scopedSlots: { customRender: 'operation' },
  }
]
// 状态
const statusMap = {
  '0': { text: '待提交审批', status: 'warning', },
  '1': { text: '审批中', status: 'processing', },
  '2': { text: '运行中', status: 'success', },
  '3': { text: '审批不通过', status: 'error', },
  '4': { text: '完工', status: 'success', },
}
// 合同计划表头
const columns1 = [
  {
    title: '编号',
    width: 80,
    align: 'center',
    dataIndex: 'sortNum',
  },
  {
    title: '阶段/类别',
    width: 400,
    dataIndex: 'phaseCategory'
  },
  {
    title: '业务事项',
    width: 200,
    dataIndex: 'businessMatters'
  },
  {
    title: '管控级别',
    width: 200,
    dataIndex: 'controlLevelId'
  },
  {
    title: '周期(天)',
    width: 150,
    dataIndex: 'period'
  },
  {
    title: '计划开始时间',
    width: 150,
    dataIndex: 'planStartTime'
  },
  {
    title: '计划完成时间',
    width: 150,
    dataIndex: 'planEndTime'
  },
  {
    title: '前置任务',
    width: 150,
    dataIndex: 'frontTask'
  },
  {
    title: '间隔时间',
    width: 150,
    dataIndex: 'intervalTime'
  },
  {
    title: '完成标准',
    width: 150,
    dataIndex: 'completeStandard'
  },
  {
    title: '验证资料',
    width: 150,
    dataIndex: 'verifyFiles'
  },
  // {
  //   title: '责任分包单位',
  //   width: 300,
  //   dataIndex: 'dutySubUnit'
  // },
  {
    title: '第一责任人',
    width: 300,
    dataIndex: 'firstResName'
  },
  {
    title: '直接责任人',
    width: 300,
    dataIndex: 'directResPerList'
  },
  {
    title: '是否关键线路节点',
    width: 150,
    dataIndex: 'isKeyNode'
  },
  {
    title: '是否里程碑节点',
    width: 150,
    dataIndex: 'isMilestonesNode'
  },
  {
    title: '是否主要工序开始节点',
    width: 180,
    dataIndex: 'isMainProcessNode'
  },
  {
    title: '是否垂直运输设备装拆',
    width: 180,
    dataIndex: 'isVerticalTransportNode'
  },
  // 再次显示得时候记得同时修改竣工收尾工作计划隐藏掉这几个字段
  // {
  //   title: '是否合同节点',
  //   width: 180,
  //   dataIndex: 'isContractDurationNode'
  // },
  // {
  //   title: '合同开始时间',
  //   width: 180,
  //   dataIndex: 'contractStartDate'
  // },
  // {
  //   title: '合同完成时间',
  //   width: 180,
  //   dataIndex: 'contractEndDate'
  // }
]
// 管控级别
const controlLevelList = [
  {
    value: '1',
    label: '一级节点'
  },
  {
    value: '2',
    label: '二级节点'
  },
  {
    value: '3',
    label: '三级节点'
  }
]
// 完成标准
const completeStandardList = ['验收照片及现场照片', '分包单位合同签订完成,具备进厂配合条件', '验收通过文件']
// 验证资料
const verifyFilesList = ['验收资料扫描件', '合同扫描件', '验收通过文件扫描件']
// 设置前置任务表头
const columns2 = [
  {
    title: '序号',
    width: 80,
    align: 'center',
    customRender: (text, record, index) => {
      return index + 1
    }
  },
  {
    title: '前置节点类型',
    dataIndex: 'nodeType',
    width: 200,
    scopedSlots: { customRender: 'nodeType' }
  },
  {
    title: '节点序号',
    dataIndex: 'sortNum',
    width: 140,
    scopedSlots: { customRender: 'sortNum' }
  },
  {
    title: '节点名称',
    dataIndex: 'frontNodeName',
    scopedSlots: { customRender: 'frontNodeName' }
  },
  {
    title: '间隔时间',
    dataIndex: 'intervalDay',
    width: 140,
    scopedSlots: { customRender: 'intervalDay' }
  },
  {
    title: '操作',
    dataIndex: 'operation',
    width: 140,
    align: 'center',
    scopedSlots: { customRender: 'operation' }
  }
]
// 前置节点类型
const nodeTypeList = [
  {
    value: 'FS',
    label: '完成-开始(FS)'
  },
  {
    value: 'FF',
    label: '完成-完成(FF)'
  },
  {
    value: 'SF',
    label: '开始-完成(SF)'
  },
  {
    value: 'SS',
    label: '开始-开始(SS)'
  }
]
// 节点信息搜索项
const searchOption1 = [
  {
    name: '业务事项',
    value: 'businessMatters',
    type: 'input'
  }
]
// 节点信息表头
const columns3 = [
  {
    title: '阶段/类别',
    width: 400,
    dataIndex: 'phaseCategory'
  },
  {
    title: '业务事项',
    width: 200,
    dataIndex: 'businessMatters'
  },
  {
    title: '节点等级',
    width: 150,
    dataIndex: 'controlLevelName'
  },
  {
    title: '周期(天)',
    width: 150,
    dataIndex: 'duration'
  },
  {
    title: '计划开始时间',
    width: 150,
    dataIndex: 'startDate'
  },
  {
    title: '计划完成时间',
    width: 150,
    dataIndex: 'endDate'
  },
  // {
  //   title: '实际开始时间',
  //   width: 150,
  //   dataIndex: 'actualStartDate'
  // },
  {
    title: '实际完成时间',
    width: 150,
    dataIndex: 'completeDate'
  },
  {
    title: '前置任务',
    width: 150,
    dataIndex: 'frontTask'
  },
  {
    title: '间隔时间',
    width: 150,
    dataIndex: 'intervalTime'
  },
  {
    title: '完成标准',
    width: 150,
    dataIndex: 'completeStandard'
  },
  {
    title: '验证资料',
    width: 150,
    dataIndex: 'verifyFiles'
  },
  {
    title: '第一责任人',
    width: 300,
    dataIndex: 'firstResName'
  },
  {
    title: '直接责任人',
    width: 300,
    dataIndex: 'directResPerName'
  },
  {
    title: '是否关键线路节点',
    width: 150,
    dataIndex: 'isKeyNode'
  },
  {
    title: '是否里程碑节点',
    width: 150,
    dataIndex: 'isMilestonesNode'
  },
  {
    title: '是否主要工序开始节点',
    width: 180,
    dataIndex: 'isMainProcessNode'
  },
  {
    title: '是否垂直运输设备装拆',
    width: 180,
    dataIndex: 'isVerticalTransportNode'
  },
  {
    title: '状态',
    width: 150,
    dataIndex: 'nodeStatusName'
  }
]
// 合同计划
const masterPlanList = [
  {
    label: '节点按时完成率',
    value: void 0,
    img: require('@/assets/masterPlan-1.png')
  },
  {
    label: '节点完成率',
    value: void 0,
    img: require('@/assets/masterPlan-2.png')
  },
  {
    label: '逾期一级节点数',
    value: void 0,
    img: require('@/assets/masterPlan-3.png')
  },
  {
    label: '逾期二级节点数',
    value: void 0,
    img: require('@/assets/masterPlan-4.png')
  },
  {
    label: '逾期三级节点数',
    value: void 0,
    img: require('@/assets/masterPlan-5.png')
  },
  {
    label: '工期延误天数',
    value: void 0,
    img: require('@/assets/masterPlan-6.png')
  }
]
// 节点逾期情况
const overdueList = [
  {
    label: '一级节点逾期率',
    value: 0
  },
  {
    label: '二级节点逾期率',
    value: 0
  },
  {
    label: '三级节点逾期率',
    value: 0
  }
]
// 节点按时完成率情况
const accomplishList = [
  {
    label: '一级节点按时完成率',
    value: 0
  },
  {
    label: '二级节点按时完成率',
    value: 0
  },
  {
    label: '三级节点按时完成率',
    value: 0
  }
]
// 节点基本信息统计
const infoList = [
  {
    label: '按期完成节点数',
    value: 0
  },
  {
    label: '逾期完成节点数',
    value: 0
  },
  {
    label: '逾期未完成节点数',
    value: 0
  }
]
// 节点完成数量统计
const accomplishQuantityList = [
  {
    label: '一级节点已完成数',
    value: 0
  },
  {
    label: '二级节点已完成数',
    value: 0
  },
  {
    label: '三级节点已完成数',
    value: 0
  }
]
// 合同计划详情表头
const columns4 = [
  {
    title: '编号',
    width: 100,
    align: 'center',
    dataIndex: 'sortNum',
  },
  {
    title: '阶段/类别',
    width: 260,
    dataIndex: 'phaseCategory'
  },
  {
    title: '业务事项',
    width: 200,
    dataIndex: 'businessMatters'
  },
  {
    title: '管控级别',
    width: 80,
    dataIndex: 'controlLevelId'
  },
  {
    title: '周期(天)',
    width: 80,
    dataIndex: 'period'
  },
  {
    title: '计划开始时间',
    width: 120,
    dataIndex: 'planStartTime'
  },
  {
    title: '计划完成时间',
    width: 120,
    dataIndex: 'planEndTime'
  },
  {
    title: '实际完成时间',
    width: 120,
    dataIndex: 'completeTime'
  },
  {
    title: '前置任务',
    width: 120,
    dataIndex: 'frontTask'
  },
  {
    title: '间隔时间',
    width: 120,
    dataIndex: 'intervalTime'
  },
  {
    title: '完成标准',
    width: 150,
    dataIndex: 'completeStandard'
  },
  {
    title: '验证资料',
    width: 150,
    dataIndex: 'verifyFiles'
  },
  // {
  //   title: '责任分包单位',
  //   width: 200,
  //   dataIndex: 'dutySubUnit'
  // },
  {
    title: '第一责任人',
    width: 200,
    dataIndex: 'firstResName'
  },
  {
    title: '直接责任人',
    width: 120,
    dataIndex: 'directResPerList'
  },
  {
    title: '是否关键线路节点',
    width: 150,
    dataIndex: 'isKeyNode'
  },
  {
    title: '是否里程碑节点',
    width: 150,
    dataIndex: 'isMilestonesNode'
  },
  {
    title: '是否主要工序开始节点',
    width: 180,
    dataIndex: 'isMainProcessNode'
  },
  {
    title: '是否垂直运输设备装拆',
    width: 180,
    dataIndex: 'isVerticalTransportNode'
  },
  {
    title: '节点状态',
    width: 120,
    dataIndex: 'nodeStatusName'
  }
]

// 节点完成表单项
const formOption = [
  {
    label: '工程名称',
    keyName: 'projectName',
    type: 'BaseInput'
  },
  {
    label: '业务事项',
    keyName: 'businessMatters',
    type: 'BaseInput'
  },
  {
    label: '阶段/类别',
    keyName: 'phaseCategory',
    type: 'BaseInput'
  },
  {
    label: '管控级别',
    keyName: 'controlLevelName',
    type: 'BaseInput'
  },
  {
    label: '周期',
    keyName: 'period',
    type: 'BaseInput'
  },
  {
    label: '计划开始时间',
    keyName: 'planStartTime',
    type: 'BaseInput'
  },
  {
    label: '计划完成时间',
    keyName: 'planEndTime',
    type: 'BaseInput'
  },
  {
    label: '亮灯情况',
    slot: true,
    keyName: 'promptLights'
  },
  {
    label: '节点状态',
    keyName: 'nodeStatusName',
    type: 'BaseInput'
  },
  {
    label: '实际开始时间',
    keyName: 'actualStartDate',
    type: 'BaseInput'
  },
  {
    label: '实际完成时间',
    keyName: 'completeDate',
    slot: true,
    type: 'a-date-picker'
  },
  {
    label: '责任分包单位',
    keyName: 'dutySubUnit',
    type: 'BaseInput'
  },
  {
    label: '验收资料',
    keyName: 'verifyFiles',
    type: 'BaseTextarea',
    span: 24
  },
  {
    label: '完成标准',
    keyName: 'completeStandard',
    type: 'BaseTextarea',
    span: 24
  },
  {
    label: '第一责任人',
    keyName: 'firstResName',
    type: 'BaseInput'
  },
  {
    label: '直接责任人',
    keyName: 'directResPerList',
    type: 'BaseInput'
  },
  {
    label: '责任人反馈',
    keyName: 'canComplete',
    type: 'BaseInput'
  },
  {
    label: '责任人反馈详情',
    keyName: 'feedbackContent',
    type: 'BaseTextarea',
    span: 24
  },
  {
    label: '节点开始维护人',
    keyName: 'startCreateName',
    type: 'BaseInput'
  },
  {
    label: '节点开始维护时间',
    keyName: 'startCreateTime',
    type: 'BaseInput'
  },
  {
    label: '节点完成维护人',
    keyName: 'creatorName',
    type: 'BaseInput'
  },
  {
    label: '节点完成维护时间',
    keyName: 'createTime',
    type: 'BaseInput'
  },
  {
    label: '逾期类别',
    slot: true,
    keyName: 'delayTypes',
    span: 24
  },
  {
    label: '逾期原因',
    keyName: 'delayReason',
    type: 'BaseTextarea',
    span: 24
  },
]
const formOption1 = [
  {
    label: '劳动力赶工费用(万元)',
    keyName: 'laborResFee',
    type: 'BaseInputNumber',
    precision: 6,
    rules: [{ required: true, message: '请输入劳动力赶工费用(万元)', trigger: 'change' }],
  },
  {
    label: '机械设备赶工费用(万元)',
    keyName: 'equipResFee',
    type: 'BaseInputNumber',
    precision: 6,
    rules: [{ required: true, message: '请输入机械设备赶工费用(万元)', trigger: 'change' }],
  },
  {
    label: '材料赶工费用(万元)',
    keyName: 'materialResFee',
    type: 'BaseInputNumber',
    precision: 6,
    rules: [{ required: true, message: '请输入材料赶工费用(万元)', trigger: 'change' }],
  },
  {
    label: '安全管理赶工费用(万元)',
    keyName: 'safetyMeasureFee',
    type: 'BaseInputNumber',
    precision: 6,
    rules: [{ required: true, message: '请输入安全管理赶工费用(万元)', trigger: 'change' }],
  },
  {
    label: '预计赶工费用(万元)',
    keyName: 'rushFee',
    type: 'BaseInputNumber',
    precision: 6,
    disabled: true
  },
  {
    label: '劳动力资源',
    keyName: 'laborRes',
    type: 'BaseTextarea',
    rules: [{ required: true, message: '请输入劳动力资源', trigger: 'change' }],
    span: 24
  },

  {
    label: '机械设备资源',
    keyName: 'equipRes',
    type: 'BaseTextarea',
    rules: [{ required: true, message: '请输入机械设备资源', trigger: 'change' }],
    span: 24
  },

  {
    label: '材料资源',
    keyName: 'materialRes',
    type: 'BaseTextarea',
    rules: [{ required: true, message: '请输入材料资源', trigger: 'change' }],
    span: 24
  },

  {
    label: '安全管理措施',
    keyName: 'safetyMeasure',
    type: 'BaseTextarea',
    rules: [{ required: true, message: '请输入安全管理措施', trigger: 'change' }],
    span: 24
  }
]
// 节点开始表单项
const formOption2 = [
  {
    label: '工程名称',
    keyName: 'projectName',
    type: 'BaseInput'
  },
  {
    label: '业务事项',
    keyName: 'businessMatters',
    type: 'BaseInput'
  },
  {
    label: '阶段/类别',
    keyName: 'phaseCategory',
    type: 'BaseInput'
  },
  {
    label: '管控级别',
    keyName: 'controlLevelName',
    type: 'BaseInput'
  },
  {
    label: '周期',
    keyName: 'period',
    type: 'BaseInput'
  },
  {
    label: '计划开始时间',
    keyName: 'planStartTime',
    type: 'BaseInput'
  },
  {
    label: '计划完成时间',
    keyName: 'planEndTime',
    type: 'BaseInput'
  },
  {
    label: '亮灯情况',
    slot: true,
    keyName: 'promptLights'
  },
  {
    label: '节点状态',
    keyName: 'nodeStatusName',
    type: 'BaseInput'
  },
  {
    label: '实际开始时间',
    keyName: 'actualStartDate',
    slot: true,
    type: 'a-date-picker'
  },
  // {
  //   label: '实际完成时间',
  //   keyName: 'completeDate',
  //   slot: true,
  //   type: 'a-date-picker'
  // },
  {
    label: '责任分包单位',
    keyName: 'dutySubUnit',
    type: 'BaseInput'
  },
  {
    label: '验收资料',
    keyName: 'verifyFiles',
    type: 'BaseTextarea',
    span: 24
  },
  {
    label: '完成标准',
    keyName: 'completeStandard',
    type: 'BaseTextarea',
    span: 24
  },
  {
    label: '第一责任人',
    keyName: 'firstResName',
    type: 'BaseInput'
  },
  {
    label: '直接责任人',
    keyName: 'directResPerList',
    type: 'BaseInput'
  },
  {
    label: '责任人反馈',
    keyName: 'canComplete',
    type: 'BaseInput'
  },
  {
    label: '责任人反馈详情',
    keyName: 'feedbackContent',
    type: 'BaseTextarea',
    span: 24
  },
  {
    label: '节点开始维护人',
    keyName: 'startCreateName',
    type: 'BaseInput'
  },
  {
    label: '节点开始维护时间',
    keyName: 'startCreateTime',
    type: 'BaseInput'
  },
  // {
  //   label: '节点完成维护人',
  //   keyName: 'creatorName',
  //   type: 'BaseInput'
  // },
  // {
  //   label: '节点完成维护时间',
  //   keyName: 'createTime',
  //   type: 'BaseInput'
  // },
  // {
  //   label: '逾期类别',
  //   slot: true,
  //   keyName: 'delayTypes',
  //   span: 24
  // },
  // {
  //   label: '逾期原因',
  //   keyName: 'delayReason',
  //   type: 'BaseTextarea',
  //   span: 24
  // }
]
// 计划列表搜索选项
const searchOption2 = [
  {
    name: '时间搜索',
    value: 'time',
    type: 'dateRange',
    attr: {
      rangeFormat: ['startTime', 'endTime']
    }
  },
  {
    name: '状态',
    value: 'planStatus',
    type: 'select',
    data: [
      {
        value: '1',
        label: '正进行'
      },
      {
        value: '2',
        label: '已进行'
      },
      {
        value: '3',
        label: '审批中'
      },
      {
        value: '4',
        label: '审批不通过'
      },

    ]
  }
]
// 周计划列表表头
const columns6 = [
  {
    title: '序号',
    width: 80,
    align: 'center',
    customRender: (text, record, index) => {
      return index + 1
    }
  },
  {
    title: '计划时间',
    dataIndex: 'planTime',
  },
  {
    title: '当周需进行的节点总数',
    dataIndex: 'currentProceedNodeNum',
  },
  {
    title: '当周计划开始节点数',
    dataIndex: 'currentPlanStartNodeNum',
  },
  {
    title: '当周计划结束节点数',
    dataIndex: 'currentPlanEndNodeNum',
  },
  {
    title: '延期到本周节点数',
    dataIndex: 'delayCurrentNodeNum',
  },
  {
    title: '状态',
    dataIndex: 'statusName',
  },
  {
    title: '操作',
    dataIndex: 'operation',
    width: 200,
    fixed: 'right',
    scopedSlots: { customRender: 'operation' }
  }
]
// 月计划列表表头
const columns7 = [
  {
    title: '序号',
    width: 80,
    align: 'center',
    customRender: (text, record, index) => {
      return index + 1
    }
  },
  {
    title: '计划时间',
    dataIndex: 'planTime',
  },
  {
    title: '当月需进行的节点总数',
    dataIndex: 'currentProceedNodeNum',
  },
  {
    title: '当月计划开始节点数',
    dataIndex: 'currentPlanStartNodeNum',
  },
  {
    title: '当月计划结束节点数',
    dataIndex: 'currentPlanEndNodeNum',
  },
  {
    title: '延期到本月节点数',
    dataIndex: 'delayCurrentNodeNum',
  },
  {
    title: '状态',
    dataIndex: 'statusName',
  },
  {
    title: '操作',
    dataIndex: 'operation',
    width: 200,
    fixed: 'right',
    scopedSlots: { customRender: 'operation' }
  }
]
// 修改计划表头
const columns8 = [
  {
    title: '编号',
    width: 80,
    align: 'center',
    dataIndex: 'sortNum',
  },
  {
    title: '阶段/类别',
    width: 400,
    dataIndex: 'phaseCategory'
  },
  {
    title: '业务事项',
    width: 200,
    dataIndex: 'businessMatters'
  },
  {
    title: '管控级别',
    width: 200,
    dataIndex: 'controlLevelId'
  },
  {
    title: '周期(天)',
    width: 150,
    dataIndex: 'period'
  },
  {
    title: '计划开始时间',
    width: 150,
    dataIndex: 'planStartTime'
  },
  {
    title: '计划完成时间',
    width: 150,
    dataIndex: 'planEndTime'
  },
  {
    title: '实际开始时间',
    width: 150,
    dataIndex: 'actualStartDate'
  },
  {
    title: '实际完成时间',
    width: 150,
    dataIndex: 'completeTime'
  },
  {
    title: '完成标准',
    width: 150,
    dataIndex: 'completeStandard'
  },
  {
    title: '验证资料',
    width: 150,
    dataIndex: 'verifyFiles'
  },
  {
    title: '责任分包单位',
    width: 300,
    dataIndex: 'dutySubUnit'
  },
  {
    title: '第一责任人',
    width: 300,
    dataIndex: 'firstResName'
  },
  {
    title: '直接责任人',
    width: 300,
    dataIndex: 'directResPerList'
  },
  {
    title: '节点状态',
    width: 150,
    dataIndex: 'nodeStatusName'
  },
  {
    title: '是否关键线路节点',
    width: 150,
    dataIndex: 'isKeyNode'
  },
  {
    title: '是否里程碑节点',
    width: 150,
    dataIndex: 'isMilestonesNode'
  },
  {
    title: '是否主要工序开始节点',
    width: 180,
    dataIndex: 'isMainProcessNode'
  },
  {
    title: '是否垂直运输设备装拆',
    width: 180,
    dataIndex: 'isVerticalTransportNode'
  }
]
// 搜索节点管控级别下拉
const nodeControlLevelList = [
  {
    value: 'FIRST_LEVEL_NODE',
    label: '一级节点'
  },
  {
    value: 'TWO_LEVEL_NODE',
    label: '二级节点'
  },
  {
    value: 'THIRD_LEVEL_NODE',
    label: '三级节点'
  },
  {
    value: 'KEY_NODE',
    label: '关键线路节点'
  },
  {
    value: 'MILESTONES_NODE',
    label: '里程碑节点'
  },
  {
    value: 'VERTICAL_TRANSPORT_NODE',
    label: '主要工序开始节点'
  },
  // {
  //   value: 'CONTRACT_NODE',
  //   label: '合同节点'
  // }
]

// 责任人反馈下拉
const feedBackList = [
  {
    value: 'WITHOUT',
    label: '无'
  },
  {
    value: 'NOT_FEEDBACK',
    label: '未反馈'
  },
  {
    value: 'CAN_COMPLETE',
    label: '能按计划完成'
  },
  {
    value: 'NOT_COMPLETE',
    label: '不能按计划完成'
  }
]
// 节点状态列表下拉
const nodeStatusList = [
  {
    value: 'NOT_IMPLEMENTED',
    label: '待进行'
  },
  {
    value: 'IS_IN',
    label: '正进行'
  },
  // {
  //   value: 'IN_REVIEW_COMPLETE',
  //   label: '完成审批中'
  // },
  {
    value: 'DELAY_NOT_FINISH',
    label: '逾期未完成'
  },
  {
    value: 'ON_TIME_FINISH',
    label: '按期完成'
  },
  {
    value: 'DELAY_FINISH',
    label: '逾期完成'
  }
  // {
  //   value: 'IN_REVIEW_START',
  //   label: '开始审批中'
  // }
]
// 月/周计划列表筛选表头
const columns9 = [
  {
    title: '编号',
    width: 80,
    align: 'center',
    dataIndex: 'sortNum',
  },
  {
    title: '业务事项',
    width: 200,
    dataIndex: 'businessMatters',
    ellipsis: true
  },
  {
    title: '管控级别',
    width: 200,
    dataIndex: 'controlLevelName'
  },
  {
    title: '周期(天)',
    width: 150,
    dataIndex: 'period'
  },
  {
    title: '计划开始时间',
    width: 150,
    dataIndex: 'planStartTime'
  },
  {
    title: '计划完成时间',
    width: 150,
    dataIndex: 'planEndTime'
  },
  {
    title: '实际开始时间',
    width: 150,
    dataIndex: 'actualStartDate'
  },
  {
    title: '实际完成时间',
    width: 150,
    dataIndex: 'completeTime'
  },
  {
    title: '完成标准',
    width: 300,
    dataIndex: 'completeStandard',
    ellipsis: true
  },
  {
    title: '验证资料',
    width: 300,
    dataIndex: 'verifyFiles',
    ellipsis: true
  },
  {
    title: '责任分包单位',
    width: 300,
    dataIndex: 'dutySubUnit',
    ellipsis: true
  },
  {
    title: '第一责任人',
    width: 300,
    dataIndex: 'firstResName',
    ellipsis: true
  },
  {
    title: '直接责任人',
    width: 300,
    dataIndex: 'directResPerList',
    scopedSlots: { customRender: 'directResPerList' },
    ellipsis: true
  },
  {
    title: '是否关键线路节点',
    width: 150,
    dataIndex: 'isKeyNode',
    scopedSlots: { customRender: 'isKeyNode' }
  },
  {
    title: '是否里程碑节点',
    width: 150,
    dataIndex: 'isMilestonesNode',
    scopedSlots: { customRender: 'isMilestonesNode' }
  },
  {
    title: '是否主要工序开始节点',
    width: 180,
    dataIndex: 'isMainProcessNode',
    scopedSlots: { customRender: 'isMainProcessNode' }
  },
  {
    title: '是否垂直运输设备装拆',
    width: 180,
    dataIndex: 'isVerticalTransportNode',
    scopedSlots: { customRender: 'isVerticalTransportNode' }
  }
]
// 审批信息表头
const columnApproveCurrent = [
  {
    title: '序号',
    dataIndex: 'serial',
    width: 65,
    scopedSlots: { customRender: 'serial' }
  },
  {
    title: '节点名称',
    dataIndex: 'taskName'
  },
  {
    title: '处理人',
    dataIndex: 'userName',
    scopedSlots: { customRender: 'userName' }
  },
  {
    title: '处理结果',
    dataIndex: 'processStatusName',
    width: 120
  },
  {
    title: '审批意见',
    dataIndex: 'opinions',
    scopedSlots: { customRender: 'opinions' },
    width: 300
  },
  {
    title: '开始时间',
    dataIndex: 'createTime',
    width: 120
  },
  {
    title: '滞留时间',
    dataIndex: 'durationInMillis',
    width: 120
  },
  {
    title: '结束时间',
    dataIndex: 'endTime',
    width: 120
  }
]
const columnApprove = [
  {
    title: '序号',
    dataIndex: 'serial',
    width: 80,
    scopedSlots: { customRender: 'serial' }
  },
  {
    title: '节点名称',
    dataIndex: 'name'
  },

  {
    title: '发起人',
    dataIndex: 'userName'
  },
  {
    title: '发起时间',
    dataIndex: 'startTime'
  },
  {
    title: '滞留时间',
    dataIndex: 'durationTime'
  },
  {
    title: '结束时间',
    dataIndex: 'endTime'
  }
]
const columnApproveDetail = [
  {
    title: '审批人',
    dataIndex: 'userName'
  },
  {
    title: '处理结果',
    dataIndex: 'processStatusName',
    width: 120
  },
  {
    title: '审批时间',
    dataIndex: 'createTime'
  },
  {
    title: '节点名称',
    dataIndex: 'taskName'
  },
  {
    title: '滞留时间',
    dataIndex: 'durationInMillis'
  },
  {
    title: '审批意见',
    dataIndex: 'formData.opinions',
    scopedSlots: { customRender: 'formData.opinions' },
    width: 300
  }
]
export {
  searchOption,
  columns,
  statusMap,
  columns1,
  controlLevelList,
  completeStandardList,
  verifyFilesList,
  columns2,
  nodeTypeList,
  searchOption1,
  columns3,
  masterPlanList,
  overdueList,
  accomplishList,
  infoList,
  accomplishQuantityList,
  columns4,
  formOption,
  formOption1,
  formOption2,
  searchOption2,
  columns6,
  columns7,
  columns8,
  nodeControlLevelList,
  feedBackList,
  nodeStatusList,
  columns9,
  columnApproveCurrent,
  columnApprove,
  columnApproveDetail
}
